package com.kingyea.app.market.authorize.dao;

import com.kingyea.app.market.auth.bean.Authorize;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface AuthorizeMapper {

    /**
     * 通过ID获取对象
     */
    Authorize getById(@Param("accreditId") String accreditId);

    /**
     * 通过ID删除对象
     */
    void deleteById(@Param("accreditId") String accreditId);

    /**
     * 保存对象
     */
    void save(Authorize obj);

    /**
     * 查询列表
     */
    List<Authorize> list(Map<String, Object> obj);

    /**
     * 批量插入用户
     *
     * @param user
     * @return
     */
    int batchSave(@Param("userLists") List<Authorize> authUser);

    void deleteAuth(Authorize obj);

}
